package com.tushare.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tushare.entity.Margin;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2021-03-08
 */
public interface IMarginService extends IService<Margin> {

    Margin getLastMargin();

    List<Margin> getMarginListByTsCode(int trade_date);

    List<Margin> getTopMarginList(int limit);

    boolean saveOrUpdateBatch(List<Margin> list);

    boolean deleteAllMargin();

}
